<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

	
<div class="cont">
                <div class="cont_title">申请成为企业会员</div>
			     <div id="stepTip">
			      <ul class="list_step clearfix">
			     <li class="now">第一步:<br>填写店主信息</li>
			     <li>第二步:<br>填写店铺信息</li>
			     <li>第三步:<br>管理员审核</li>
			     <li style="padding-right:0">第四步:<br>完成</li>
			     </ul>
			     </div>
               
				<form enctype="multipart/form-data" onsubmit="return check_form(this)" name="form_shop_request" method="post" action="<?php echo $this->_url('user/shoprequest');?>">
				<table width="100%" cellspacing="0" border="0">				
				<tbody>
				    <tr><td width="40%" class="textright">企业名称或个人姓名：</td><td><input type="text" style="width:200px" value="<?php echo $oneuserinfo['shoprequest']['company_name'];?>" id="company_name" name="data[shoprequest][company_name]"> <span class="red">*</span></td></tr>
					<tr><td class="textright">法人代表姓名：</td><td><input type="text" style="width:100px" value="<?php echo $oneuserinfo['shoprequest']['person_name'];?>" id="person_name" name="data[shoprequest][person_name]"> <input type="hidden" value="8" name="request_id"></td></tr>
					<tr><td class="textright">身份证号码：</td><td><input type="text" style="width:200px" maxlength="200" id="credit_num" value="<?php echo $oneuserinfo['shoprequest']['credit_num'];?>" name="data[shoprequest][credit_num]"> <span class="red">*</span></td></tr>
					<tr><td class="textright">身份证上传：</td><td><input type="file" name="doc[]"> <span class="red">*</span>文件格式（jpg,gif,png）</td></tr>
					<tr><td class="textright">企业工商营业执照：</td><td><input type="file" name="doc1[]"> <span class="red">*</span>文件格式（jpg,gif,png）</td></tr>
					<tr><td class="textright">企业法人组织机构代码证：</td><td><input type="file" name="doc2[]"> <span class="red">*</span>文件格式（jpg,gif,png）</td></tr>					
					<tr><td class="textright">税务局国税登记证：</td><td><input type="file" name="doc3[]"> <span class="red">*</span>文件格式（jpg,gif,png）</td></tr>					
					<tr><td class="textright">公司所在地：</td><td><input type="text" value="<?php echo $oneuserinfo['shoprequest']['company_area'];?>" style="width:200px" maxlength="200" id="company_area" name="data[shoprequest][company_area]"> </td></tr>
					<tr><td class="textright">详细通讯地址：</td><td><input type="text" style="width:300px" maxlength="200" value="<?php echo $oneuserinfo['shoprequest']['company_address'];?>"  id="company_address" name="data[shoprequest][company_address]"> <span class="red">*</span></td></tr>
					<tr><td class="textright">邮编：</td><td><input type="text" style="width:100px" maxlength="10" value="<?php echo $oneuserinfo['shoprequest']['zipcode'];?>"  id="zipcode" name="data[shoprequest][zipcode]"> <span class="red">*</span></td></tr>
					<tr><td class="textright">手机号码：</td><td><input type="text" style="width:200px" maxlength="20" value="<?php echo $oneuserinfo['shoprequest']['mobile'];?>" id="mobile"  name="data[shoprequest][mobile]"> <span class="red">*</span></td></tr>
					<tr><td class="textright">联系电话：</td><td><input type="text" style="width:200px" maxlength="20" value="<?php echo $oneuserinfo['shoprequest']['telphone'];?>" id="telphone"  name="data[shoprequest][telphone]"> <span class="red">*</span></td></tr>
					<tr>
					<td align="center" colspan="2" style="text-align:center">
					<input type="hidden" value="<?php echo $userid; ?>" name="data[shoprequest][user_id]">
					<input type="hidden" value="1" name="data[step]">
					<input type="submit" value="提交申请" name="submit"></td></tr>
					<tr>
					<td align="center" colspan="2" style="text-align:center">请详细正确的填写信息，如有错误不能通过审核！</td>
					</tr>
					</tbody></table>
				</form>
            </div>	
	
	

        

    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />
</div>

<script type="text/javascript" language="JavaScript">
	function check_form(obj){
		if(obj.company_name.value==''){
			alert("名称不能为空！");
			return false;
		}
		
		if(obj.credit_num.value==''){
			alert("证件号码不能为空！");
			return false;
		}
		if(isNaN(obj.credit_num.value.substr(0,obj.credit_num.value.length-1))){
			alert("请填写真实的证件号码！");
			return false;
		}
		if(obj.company_address.value==''){
			alert("公司地址不能为空！");
			return false;
		}
		if(obj.zipcode.value==''){
			alert("邮编不能为空！");
			return false;
		}
		if(isNaN(obj.zipcode.value)){
			alert("邮编必须是数字！");
			return false;
		}
		if(obj.mobile.value==''){
			alert("手机不能为空！");
			return false;
		}
		if(isNaN(obj.mobile.value)){
			alert("手机必须是数字！");
			return false;
		}
		if(obj.telphone.value==''){
			alert("电话不能为空！");
			return false;
		}
		if(isNaN(obj.telphone.value)){
			alert("电话必须是数字！");
			return false;
		}
	}
</script>
</body>
</html>